using System.Collections.Generic;
using DAL;
using Entity;

namespace Business
{
	public class OutBillBusiness
	{
		#region code CMS
        public static List<OutBill> GetOutBillList()
        {
		    var result = FreshCmsDataAccessProvider.OutBill.GetOutBillList();
		    return result;
        }

		public static List<OutBill> GetOutBillListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        {
		    var result = FreshCmsDataAccessProvider.OutBill.GetOutBillListByPaging(pageIndex, pageSize, ref totalRecord);
		    return result;
        }

        public static OutBill GetOutBillById(int billId)
        {
		    var result = FreshCmsDataAccessProvider.OutBill.GetOutBillById(billId);
            return result;
        }

        public static int InsertOutBill(OutBill OutBill)
        {
            var result = FreshCmsDataAccessProvider.OutBill.InsertOutBill(OutBill);
            return result;
        }

        public static int UpdateOutBill(OutBill OutBill)
        {
            var result = FreshCmsDataAccessProvider.OutBill.UpdateOutBill(OutBill);
            return result;
        }

        public static int DeleteOutBill(int billId)
        {
            var result = FreshCmsDataAccessProvider.OutBill.DeleteOutBill(billId);
            return result;
        }
		#endregion
	}
}